<% if current_user.allow?(Skyline::PageFragment, :index) %>
  <dt id="leftFragmentHeaderPanel" class="<%= local_assigns[:active] ? "active" : "" %>">
  	<span class="content" style="position: relative; overflow: hidden">
  		<%= link_to(
  		      button_text(:plus),
  		      skyline_articles_path(:type => Skyline::PageFragment),
  		      :remote => true,
  		      :method => :post, 
  		      :class => "button small") %>
  		<%= Skyline::PageFragment.model_name.human(:count => 2) %>
  	</span>
  </dt>
  <dd  id="leftFragmentContentPanel" class="scrollable">
    <ul class="selectlist">
      <% Skyline::PageFragment.ordered_by_title.all.each do |pf| %>
        <li><%= link_to pf.default_variant_data.title, edit_skyline_article_path(pf), :class => (pf == @article ? "active" : nil) %></li>
      <% end %>
    </ul>
  </dd>
<% end %>
